Skip to content

Make jmh params configurable via command line args#8305

Open
jack-berg wants to merge 3 commits intoopen-telemetry:mainfrom
jack-berg:configurable-jmh-params
Open

Make jmh params configurable via command line args#8305
jack-berg wants to merge 3 commits intoopen-telemetry:mainfrom
jack-berg:configurable-jmh-params

Conversation

@jack-berg
Copy link
Copy Markdown
Member

The benchmarks we run in benchmark.yml use shared bare metal runners, so we want to be judicious with how much time our runs take.

Local runs don't have the same constraints, and it can be quite useful to run with more forks, more time, or more iterations to reduce variance.

This makes such customization easy by adding parameters.

For example:

# run with defaults defined in benchmark class
./gradlew :sdk:all:jmh -PjmhIncludeSingleClass=SpanRecordBenchmark

# override forks from 1 to 3 to reduce variance
./gradlew :sdk:all:jmh -PjmhIncludeSingleClass=SpanRecordBenchmark -PjmhFork=3

@jack-berg jack-berg requested a review from a team as a code owner April 17, 2026 18:50
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 17, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.26%. Comparing base (984fd4f) to head (49f90a2).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##               main    #8305   +/-   ##
=========================================
  Coverage     90.25%   90.26%           
- Complexity     7687     7688    +1     
=========================================
  Files           850      850           
  Lines         23198    23198           
  Branches       2354     2354           
=========================================
+ Hits          20938    20940    +2     
+ Misses         1532     1531    -1     
+ Partials        728      727    -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant